#pragma once
#include "stdafx.h"

template<typename T>
inline void print_container(const vector<MyUniquePTR< T >>& cont)
{
	if (!cont.empty())
	{
		for (size_t i = 0; i < cont.size(); i++)
		{
			if (cont[i]) cout << *(cont[i]) << " "; 
			else cout << "Nullptr" << " ";
		}
		cout << std::endl;
	}else cout <<"Empty container" << std::endl;
	
}

template<typename T>
inline void print_container(const list<MyUniquePTR< T >>& cont)
{
	if (!cont.empty())
	{
	for (auto itb = cont.begin(), itend = cont.end(); itb != itend; itb++)
	{
		if (*itb)
		{ cout << *(*itb) << " "; }
		else 	 cout << "Nullptr" << " ";
	}
	cout << std::endl;
	}
	else cout << "Empty container" << std::endl;
}